package com.geeaks.learn.java8.lambda;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import cn.hutool.core.util.StrUtil;
import static org.junit.Assert.assertEquals;

public class LambdaTest {
	
	public static void main(String[] args) {
		List<String> collected = Stream.of("a", "b", "c").map(string -> string.toUpperCase()).collect(Collectors.toList());
		Stream<String> filter = collected.parallelStream().filter(v -> StrUtil.isEmptyIfStr(v));
		System.out.println(filter.collect(Collectors.toList()));
	}
}
